package com.asimplefox.aasr;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author github.kloping
 */
@Data
@Accessors(chain = true)
public class TaskResult {
    private long log_id;
    private TaskInfo[] tasks_info;

    @Data
    @Accessors(chain = true)
    public static class TaskInfo {
        private String task_status;
        private String task_id;
        private TaskResultDetail task_result;
    }

    @Data
    @Accessors(chain = true)
    public static class TaskResultDetail {
        private String[] result;
        private long audio_duration;
        private DetailedResult[] detailed_result;
    }

    @Data
    @Accessors(chain = true)
    public static class DetailedResult {
        private String[] res;
        private long end_time;
        private long begin_time;
        private String[] words_info;
        private String sn;
        private String corpus_no;
    }
}
